<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
        <title>Banana Gun Bot, Solana Telegram Trading Bots (Details, Pricing & Features)</title>
        <style>
            html,
            body {padding: 0;margin: 0;width: 100%;height: 100%;overflow: hidden;}
            .main_box {width: 100%;height: 100%;background-color: #0d0a22;text-align: center;font-family: 'Microsoft Yahei';overflow: auto;-webkit-overflow-scrolling: touch;}
            .pointer {cursor: pointer;}
            a {text-decoration: none;}
            .layui-layer-title {color: white;}
            .photos_box {width: 86%;max-width: 1300px;margin: 0 auto;position: relative;}
            .photos_box > .photos {width: 100%;display: table-row;}
            .btn {line-height: 50px;position: absolute;font-size: 16px;font-weight: bold;color: white;text-align: center;border-radius: 34px;border: 2px solid #0d0a22;background-color: #5429e7;}
            .btn:active, .btn:hover {border-color: #5429e7;background: none;color: #5429e7;}
            .tips_btn1 {display: block;margin: 10px 0;padding: 0 10px;line-height: 50px;font-size: 16px;font-weight: bold;color: white;text-align: center;border-radius: 34px;border: 2px solid white;background-color: #5429e7;}
            .tips_btn2 {display: block;margin: 10px 0;padding: 14px 10px;line-height: 18px;font-size: 14px;font-weight: bold;color: #5429e7;text-align: center;border-radius: 34px;border: 2px solid #5429e7;}
        </style>
    </head>

    <body>
        <div class="main_box">
            <div class="photos_box"></div>
        </div>
    </body>
    <script src="./scripts/jquery.min.js"></script>
    <script src="./scripts/layer.js"></script>
    <script src="./scripts/common.js"></script>
    <script>
        $(document).ready(function () {
            var photos_opts = {
                PC: {
                    path: './photos_pc/',
                    total: 8,
                    btn1: '#box2',
                    btn2: '#box7',
                    btn1_css: 'width:35%;bottom:24%;right:0;',
                    btn2_css: 'width:26%;bottom:70px;left:3%;',
                    btn2_text: "DON'T HAVE TELEGRAM YET?TRY IT NOW!"
                },
                PHONE: {
                    path: './photos_phone/',
                    total: 8,
                    btn1: '#box1',
                    btn2: '#box5',
                    btn1_css: 'width:100%;bottom:7%;left:0;',
                    btn2_css: 'width:81%;max-width:300px;bottom:9%;left:10%;',
                    btn2_text: "DON'T HAVE TELEGRAM YET? <br/>TRY IT NOW!"
                }
            };
            var device = $(this).width() > 770 ? 'PC' : 'PHONE';

            for (let j = 0;j < photos_opts[device].total;j++) {
                var $thebox = $('<div>').attr({ class: 'photos_box', id: 'box' + (j+1) });
                $thebox.append($('<img/>').attr({ class: 'photos', src: photos_opts[device].path + 'demo' + (j+1) + '.jpg' }));
                $('.main_box').append($thebox);
            }

            $(photos_opts[device].btn1).append('<div class="pointer btn" style="' + photos_opts[device].btn1_css + '">Try Banana Gun Bot</div>');
            $(photos_opts[device].btn2).append('<div class="pointer btn" style="' + photos_opts[device].btn2_css + '">Try Banana Gun Bot now</div>');
            $('.btn').click(function () {
                var jumpURL = '';
                switch ($.detectDeviceType()) {
                    case 'android': jumpURL = 'https://play.google.com/store/search?q=telegram&c=apps&pli=1';break;
                    case 'ios': jumpURL = 'https://apps.apple.com/us/app/telegram-messenger/id686449807';break;
                    default: jumpURL = 'https://apps.apple.com/us/app/telegram-messenger/id686449807';
                }

                layer.open({
                    title: 'Try Banana Gun Bot!',
                    content: `
                        <div class="tips_box">
                            <a class="pointer tips_btn1" href="https://bananaguntg.com/">OPEN IN TELEGRAM</a>
                            <a class="pointer tips_btn2" href="${jumpURL}">${photos_opts[device].btn2_text}</a>
                        </div>
                    `,
                    btn: []
                });
            });
        });
    </script>
</html>
